Dynomotion

Group: DynoMotion Message: 11119 From: Rjreese29 Date: 2/20/2015
Subject: Feedhold response and c format

Hi,

I am working on getting a Feedhold button programmed into my init.c.  The standard feedhold.c program works with a very quick response time, everytime.After a few test runs, I would get a feedhold randomly triggered while a program was running. 

Then I decided to remove the basic feedhold.c, I upgraded and add all items needed from externalbuttons.c, the response time was fast on only the first feedhold, but the was slow in subsequent feedhold presses (upto 6 seconds). And then at most times it is just slow. This was done to include the debounce.

It is being run through mach3.
My look ahead is set to 200.

Attached is my init.c
I intend to add css, but I am not testing or working on this yet in great detail.

Please let me know what you think of this file as I am a Luddite in c language, if anyone has time to review this, it would be greatly appreciated.

Thanks,
Rob



See files attached to this message (sent from GoodReader)


Group: DynoMotion Message: 11121 From: Tom Kerekes Date: 2/21/2015
Subject: Re: Feedhold response and c format [1 Attachment]
Hi Rob,

I think the main issue is DoPCFloat() type commands are only supported by KMotionCNC not Mach3.  Mach3 has alternate ways to do things (External Triggers).  Once you call DoPCFloat there will be no KMotionCNC to respond and the loop will hang forever. Start by removing DoPCFLoat and all calls to it.

Regards
TK



Group: DynoMotion Message: 11127 From: Rjreese29 Date: 2/24/2015
Subject: Re: Feedhold response and c format
Thanks Tom,
I'll give it a try.

Rob

On Feb 21, 2015, at 9:47 AM, Tom Kerekes tk@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:

 

Hi Rob,

I think the main issue is DoPCFloat() type commands are only supported by KMotionCNC not Mach3.  Mach3 has alternate ways to do things (External Triggers).  Once you call DoPCFloat there will be no KMotionCNC to respond and the loop will hang forever. Start by removing DoPCFLoat and all calls to it.

Regards
TK